#-------------------------------------------------
#
# Project created by QtCreator 2019-10-11T12:13:17
#
#-------------------------------------------------

QT       += core gui dbus svg

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = calendar-desktop-widget
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11 link_pkgconfig
PKGCONFIG += dtkwidget dframeworkdbus

INCLUDEPATH += src/calendar-basicstruct
INCLUDEPATH += src/calendar-client/src/scheduleTask
INCLUDEPATH += src/calendar-service/src/dbus
INCLUDEPATH += /usr/include/libdframeworkdbus-2.0

HEADERS += \
    src/TaskList.h \
    src/calendar-basicstruct/src/repetitionrule.h \
    src/calendar-basicstruct/src/commondatastruct.h \
    src/calendar-basicstruct/src/calendardatastruct.h \
    src/calendar-basicstruct/src/DebugTimeManager.h \
    src/calendar-basicstruct/src/lunardatastruct.h \
    src/calendar-basicstruct/src/reminddata.h \
    src/calendar-basicstruct/src/scheduledatainfo.h \
    src/calendar-basicstruct/src/dbusdatastruct.h \
    src/calendar-basicstruct/src/commondef.h \
    src/calendar-basicstruct/src/utils.h \
    src/calendar-client/src/scheduleTask/cscheduledbus.h \
    src/MainWindow.h \
    src/TaskItem.h \
    src/calendar-service/src/dbus/CalendarDbusUI.h \
    src/TaskMenu.h \
    src/DataCenter.h \
    src/floatTask/FloatTaskItem.h \
    src/AboutDialog.h \
    src/StateBar.h


SOURCES += \
    src/TaskList.cpp \
    src/calendar-basicstruct/src/DebugTimeManager.cpp \
    src/calendar-basicstruct/src/utils.cpp \
    src/calendar-basicstruct/src/repetitionrule.cpp \
    src/calendar-basicstruct/src/commondatastruct.cpp \
    src/calendar-basicstruct/src/lunardatastruct.cpp \
    src/calendar-basicstruct/src/dbusdatastruct.cpp \
    src/calendar-basicstruct/src/reminddata.cpp \
    src/calendar-basicstruct/src/calendardatastruct.cpp \
    src/calendar-basicstruct/src/scheduledatainfo.cpp \
    src/calendar-client/src/scheduleTask/cscheduledbus.cpp \
    src/main.cpp \
    src/MainWindow.cpp \
    src/TaskItem.cpp \
    src/calendar-service/src/dbus/CalendarDbusUI.cpp \
    src/TaskMenu.cpp \
    src/DataCenter.cpp \
    src/floatTask/FloatTaskItem.cpp \
    src/AboutDialog.cpp \
    src/StateBar.cpp


TRANSLATIONS += translations/calendar-desktop-widget.ts

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    ./res.qrc

